package com.example.studyPlatform.exception;

public class BaseException extends RuntimeException {
    final Object source;

    public BaseException(Object source) {
        this.source = source;
    }

    public Object getSource() {
        return source;
    }

    public <T> T getSource(Class<T> clazz) {
        return (T)source;
    }
}
